<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增邮件列')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-etlMail-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">收件人，多个用';'符号隔开：</label>
				<div class="col-sm-8">
					<input id="toAddress" name="toAddress" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">抄送人，多个用';'符号隔开：</label>
				<div class="col-sm-8">
					<input id="ccAddress" name="ccAddress" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件主题：</label>
				<div class="col-sm-8">
					<input id="subject" name="subject" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件，多个用';'符号隔开：</label>
				<div class="col-sm-8">
					<input id="appendix" name="appendix" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件正文：</label>
				<div class="col-sm-8">
					<input id="mailBody" name="mailBody" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发件人：</label>
				<div class="col-sm-8">
					<input id="sender" name="sender" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">脚本名称：</label>
				<div class="col-sm-8">
					<input id="scriptName" name="scriptName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">脚本用途：</label>
				<div class="col-sm-8">
					<input id="scriptUsage" name="scriptUsage" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="scriptContent" name="scriptContent" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划开始时间：</label>
				<div class="col-sm-8">
					<input id="planningStartTime" name="planningStartTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划结束时间：</label>
				<div class="col-sm-8">
					<input id="planningEndTime" name="planningEndTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">实际开始时间：</label>
				<div class="col-sm-8">
					<input id="realStartTime" name="realStartTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">实际结束时间：</label>
				<div class="col-sm-8">
					<input id="realEndTime" name="realEndTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input id="status" name="status" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">运行次数：</label>
				<div class="col-sm-8">
					<input id="runs" name="runs" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件发送时间：</label>
				<div class="col-sm-8">
					<input id="sendTime" name="sendTime" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "xman/etlMail"
		$("#form-etlMail-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-etlMail-add').serialize());
	        }
	    }
	</script>
</body>
</html>
